package com.onlinelibrary.mapper;

import com.onlinelibrary.pojo.Book;
import com.onlinelibrary.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface UserMapper {

    List<User> list();

    User getUser(User user);

    Integer register(User user);

    User login(User user);

    User getUserByEmail(User user);

    Integer updateUser(User user);

    List<User> getTableData(User user);

    Integer deleteUser(User user);

    List<Book> selectBooksByIsbns(@Param("isbns") List<String> isbns);
    Integer sortByIsbns(@Param("isbns") List<String> isbns);
    Integer addByIsbns(@Param("isbns") List<String> isbns);

    Integer updatePassword(User user);
}
